//
//  AppDelegate.swift
//  WeiboCY
//
//  Created by 林小陌 on 16/1/10.
//  Copyright © 2016年 林小陌. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.
       setThemeColor()
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.whiteColor()
        //跟视图
        window?.rootViewController = MainViewController()
        window?.makeKeyAndVisible()
        
        
        
        return true
    }
    private func setThemeColor(){
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        UITabBar.appearance().tintColor = UIColor.orangeColor()
    }


}

